package com.dr.unitapplication;

import org.springframework.stereotype.Service;

/**
 * @Package: com.dr.unitapplication
 * @Description: java类作用描述
 * @Author: rayduan
 * @CreateDate: 2025/2/28 15:42
 * @Version: 1.0
 * <p>
 */
@Service
public class Calculator {
    // 加法
    public int add(int a, int b) {
        return a + b;
    }

    // 减法
    public int subtract(int a, int b) {
        return a - b;
    }

    // 乘法
    public int multiply(int a, int b) {
        return a * b;
    }

    // 除法
    public int divide(int a, int b) {
        return a / b;
    }
}
